<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8"/>
    <title>${session.SOFT_NAME }_智能办公系统</title>
    <meta name="description" content="Dashboard"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <%include("/app/resapi/style.html"){} %>
    <link rel="stylesheet" href="/module/zTree_v3/css/bootstrapStyle/bootstrapStyle.css" type="text/css">
    <link href="/module/jeDate/jedate.css" rel="stylesheet"/>
    <style type="text/css">
        #myTable tr td {
            vertical-align: middle;
        }
    </style>
</head>
<body style="overflow-y: auto;">
<div class="page-body" style="padding: 4px 0px 0px;">
    <div class="main-container container-fluid">
        <div class="page-container">
            <div class="col-md-12 col-sm-12 col-xs-12" style="padding: 0px">
                <div class="tabbable">
                    <ul class="nav nav-tabs tabs-flat" id="myTab11" style="background-image: url('/gobal/img/tb_header.png'); background-size: 34px 60px;">
                        <li class="active"><a href="/app/core/contract/bill" aria-expanded="true">新建票据</a></li>
                        <li><a href="/app/core/contract/bill?view=manage" aria-expanded="false">票据管理 </a></li>
                    </ul>
                    <div class="tab-content tabs-flat">
                        <div class="row">
                            <div class="col-md-12" style="padding-top: 0px">
                                <form class="form-horizontal form-bordered" id="from">
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">相关合同：</label>
                                        <div class="col-sm-5">
                                            <input type="text" style="width:100%" id="contractId" name="contractId">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">对方名称：</label>
                                        <div class="col-sm-5">
                                            <input type="text" class="form-control" id="customerName" name="customerName" placeholder="对方名称">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">票据编号：</label>
                                        <div class="col-sm-5">
                                            <input type="text" class="form-control" id="billCode" name="billCode" placeholder="票据编号">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">开票日期：</label>
                                        <div class="col-sm-5">
                                            <input type="text" class="form-control" id="billTime" name="billTime" placeholder="开票日期">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">开票类型：</label>
                                        <div class="col-sm-5">
                                            <select class="form-control" id="billType" name="billType" style="border-radius: 0px;">
                                                <option value="1">普票</option>
                                                <option value="2">增票</option>
                                                <option value="3">服务票</option>
                                                <option value="4">电子票</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">票据事件：</label>
                                        <div class="col-sm-5">
                                            <div class="radio" style="display: inline-block;">
                                                <label>
                                                    <input name="isOpen" type="radio" class="colored-blue" value="1" checked="checked">
                                                    <span class="text">开票</span>
                                                </label>
                                            </div>
                                            <div class="radio" style="display: inline-block;">
                                                <label>
                                                    <input name="isOpen" type="radio" class="colored-blue" value="2">
                                                    <span class="text">收票</span>
                                                </label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">开票金额：</label>
                                        <div class="col-sm-3" style="display: inline-block;">
                                            <input type="number" class="form-control" id="total" name="total" placeholder="开票金额">
                                        </div>
                                        <span style="display: inline-block;line-height: 34px">元</span>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">开票备注：</label>
                                        <div class="col-sm-10">
                                            <div id="remark" style="height: 300px"></div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-1 control-label no-padding-right">票据附件 ：</label>
                                        <div class="col-sm-5">
                                            <div style="padding-top: 4px;">
                                                <div id="show_contractattach"></div>
                                                <a class="addfile" href="javascript:void(0)">${i18n('fileupload')} <input data_value="" type="file" onchange="fileUpLoad('news','contractattach');" hidefocus="true" size="1" id="contractattach"
                                                                                                                          name="contractattach" class="addfile" multiple="multiple"></a>
                                                <a class="addfile" style="width: 200px;" href="#" op_id="contractattach" onclick="selectattach(this,'true')">${i18n('system.netFileSelect')}</a>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-offset-1 col-sm-5">
                                            <a id="createbut" href="javascript:void(0);" class="btn btn-primary">${i18n('system.create')}</a>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="orgselectdiv"></div>
<div id="attachselect"></div>
<%include("/app/resapi/sysjs.html"){} %>
<script type="text/javascript" src="/module/fileupload/pageoffice.js" id="po_js_main"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.excheck.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.exedit.js"></script>
<script type="text/javascript" src="/assets/js/select2/select2.js"></script>
<script type="text/javascript" src="/module/fileupload/ajaxfileupload.js"></script>
<script type="text/javascript" src="/module/fileupload/fileupload.js"></script>
<script type="text/javascript" src="/module/fileupload/attachselect.js"></script>
<script type="text/javascript" src="/module/jeDate/jeDate.js"></script>
<script type="text/javascript" src="/assets/js/editors/summernote/summernote.js"></script>
<script type="text/javascript" src="/module/orgselect/orgselect.js"></script>
<script type="text/javascript" src="/gobal/js/page/contract/bill.js"></script>
</body>
</html>
